table
	tr
		td.neutral(colspan='2')
			h3 User Profile
			-if(typeof(user) != 'undefined' && user.type=='Administrator')
				button(onclick='window.location.href = \'/users/'+profile._id+'/edit\'') Edit
				button(onclick='window.location.href= \'/users/'+profile._id+'/remove\'') Remove
	tr
		td.neutral(colspan='2')
			img(src='/static/profile/' + profile._id + '.jpg', height='200')
	tr
		td.neutral.editLabel First Name
		td.neutral= profile.firstName
	tr
		td.neutral.editLabel Last Name
		td.neutral= profile.lastName
	tr
		td.neutral.editLabel Email Address
		td.neutral= profile.email
	tr
		td.neutral.editLabel Facbook Profile
		td.neutral
			a(href= profile.fbProfile, target='_blank')= profile.fbUser || profile.firstName
	-if(/Rushee/i.test(profile.type))
		tr
			td.neutral.editLabel Events
			td.neutral
				ul
					each event in profile.events
						li.ok.link(onclick='window.location.href=\'/events/' + event._id + '\'')= event.what
		tr
			td.neutral.editLabel Discussion
			td.neutral
				button.link(onclick='window.location.href=\'/users/' + profile._id + '/comment\'') Comment
				ul
					each comment in profile.comments
						li.ok= comment.who.firstName + ' ' + comment.who.lastName + ': ' + comment.what
